﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="~/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="~/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" />
    <link href="~/static/h-ui.admin/css/style.css" rel="stylesheet" />
    <link href="~/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" />
    <meta name="keywords">
    <meta name="description">
</head>
<body>
    <div>
        <h1 style="position:relative;left:10px;">学生管理</h1>
        <hr />
        <br />
        <br />
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="button" value="批量添加学生信息" class="btn btn-primary radius" onclick="admin_permission_add('添加策略', '/Admin/BatchStudent', '', '310')" />
            </div>
        </div>
        <div class="row cl" style="position:relative;left:400px;top:-30px;">
            <label class="form-label col-xs-4 col-sm-2"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="button" value="查询学生信息" class="btn btn-primary radius" />
            </div>
        </div>
        <article class="page-container">
            <form class="form form-horizontal" id="form-article-add">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">学院：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <span class="select-box">
                            <select name="articlecolumn" id="College" class="select" onchange="CollegeChange()">
                                <option value="0">请选择</option>
                                @foreach (var item in ViewBag.College)
                                {
                                    <option value="@item.ID">@item.College_Name</option>
                                }
                            </select>
                        </span>
                    </div>
                </div>
                <br />
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">班级：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <span class="select-box">
                            <select name="articletype" class="select">
                                <option value="0">请选择</option>
                                <option value="1">1505netB</option>
                                <option value="2">1505netB</option>
                            </select>
                        </span>
                    </div>
                </div>
            </form>
        </article>
        <div class="col-md-8 col-md-offset-2 text-c" style="position:relative;right:10px;">
            <table class="table table-border table-bordered table-hover table-bg mt-20">
                <tbody>
                    <tr class="text-c">
                        <td>用户名称</td>
                        <td>所属学院</td>
                        <td>所属班级</td>
                        <td>操作</td>
                    </tr>
                    <tr class="text-c">
                        <td>张三</td>
                        <td>软工</td>
                        <td>1505.phpA</td>
                        <td><input type="button" value="删除" class="btn btn-primary radius" />&nbsp;&nbsp;<input type="button" value="修改" class="btn btn-primary radius" /></td>
                    </tr>
                    <tr class="text-c">
                        <td>张三</td>
                        <td>软工</td>
                        <td>1505.phpA</td>
                        <td><input type="button" value="删除" class="btn btn-primary radius" />&nbsp;&nbsp;<input type="button" value="修改" class="btn btn-primary radius" /></td>
                    </tr>
                    <tr class="text-c">
                        <td>张三</td>
                        <td>软工</td>
                        <td>1505.phpA</td>
                        <td><input type="button" value="删除" class="btn btn-primary radius" />&nbsp;&nbsp;<input type="button" value="修改" class="btn btn-primary radius" /></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>
<script src="~/lib/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="~/lib/layer/2.4/layer.js" type="text/javascript"></script>
<script src="~/static/h-ui/js/H-ui.min.js" type="text/javascript"></script>
<script src="~/static/h-ui.admin/js/H-ui.admin.js" type="text/javascript"></script>
<script type="text/javascript">
    /*
        参数解释：
        title	标题
        url		请求的url
        id		需要操作的数据id
        w		弹出层宽度（缺省调默认值）
        h		弹出层高度（缺省调默认值）
    */
    /*管理员-权限-添加*/
    function admin_permission_add(title, url, w, h) {
        layer_show(title, url, w, h);
    }
    /*管理员-权限-编辑*/
    function admin_permission_edit(title, url, id, w, h) {
        layer_show(title, url, w, h);
    }

    /*管理员-权限-删除*/
    function admin_permission_del(obj, id) {
        layer.confirm('确认要删除吗？', function (index) {
            $.ajax({
                type: 'POST',
                url: '',
                dataType: 'json',
                success: function (data) {
                    $(obj).parents("tr").remove();
                    layer.msg('已删除!', { icon: 1, time: 1000 });
                },
                error: function (data) {
                    console.log(data.msg);
                },
            });
        });
    }
</script>